package com.example.demo.model.vo;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * Created by zkq19 on 2018/7/2.
 */
@Data
public class InquiryAddVo {
    @NotNull(message = "修改失败,Id不能为空")
    private Integer id;
    //询价单号
    private String inquiryNo;
    @NotNull(message = "新增失败,法人信息不能为空")
    private Integer legalPersonId;
    @NotNull(message = "新增失败,询价类型不能为空")
    private Integer type;
    @NotNull(message = "新增失败,询价币别不能为空")
    private Integer moneyType;
    @NotNull(message = "新增失败,金额是否含税不能为空")
    private Integer isTax;
    @NotBlank(message = "新增失败,开始日期不能为空")
    private Date startDate;
    @NotBlank(message = "新增失败,询价结束日期不能为空")
    private Date endDate;

    @Valid
    @NotEmpty(message = "新增失败,备件集合不能为空")
    List<InquiryPartsVo> inquiryPartsVos;
    @Valid
    @NotEmpty(message = "新增失败,供应商集合不能为空")
    List<InquirySupplierVo> inquirySupplierVos;


}
